/* 名优特产页面专用样式 */
.products-container {
    padding: 20px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
}

/* 筛选区域 */
.filter-section {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 8px;
}

.filter-section h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 15px;
    padding-bottom: 8px;
    border-bottom: 2px solid #CCFF66;
}

.filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.filter-btn {
    background-color: rgba(13, 50, 33, 0.5);
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn.active {
    background-color: #0d3221;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.filter-btn:hover {
    background-color: #154a33;
    transform: translateY(-2px);
}

/* 特产网格布局 */
.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 25px;
}

.product-card {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.product-card figure {
    margin: 0;
}

.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover img {
    transform: scale(1.05);
}

.product-card figcaption {
    display: none; /* 使用h5作为标题展示 */
}

.product-info {
    padding: 15px;
}

.product-info h5 {
    color: #CCFF66;
    margin-top: 0;
    margin-bottom: 10px;
    font-size: 18px;
}

.product-info p {
    color: #f0f0f0;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
}

.product-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price {
    color: #fff;
    font-weight: bold;
    font-size: 16px;
}

.add-to-cart {
    background: linear-gradient(135deg, #c8805a, #a06040);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background-color 0.3s ease;
}

.add-to-cart:hover {
    background: linear-gradient(135deg, #d8906a, #b07050);
}

/* 推荐表单区域 */
.product-recommend {
    background-color: rgba(13, 50, 33, 0.2);
    padding: 25px;
    border-radius: 8px;
}

.product-recommend h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #CCFF66;
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.fade-in {
    animation: fadeIn 0.5s ease forwards;
}

/* 响应式布局 */
@media (max-width: 768px) {
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .main-menu ul {
        display: none;
        flex-direction: column;
    }
    
    .main-menu ul.show {
        display: flex;
    }
    
    .menu-toggle {
        display: block;
    }
}

@media (min-width: 769px) and (max-width: 1199px) {
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* 伪元素应用 */
.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, #c8805a, #CCFF66);
}

.product-card {
    position: relative;
}

/* 复合选择器应用 */
.product-recommend .form-group {
    margin-bottom: 15px;
}

.form-control:focus {
    outline: 2px solid #CCFF66;
}

/* 属性选择器 */
input[type="email"]:focus {
    background-color: rgba(255, 255, 255, 0.95);
}

textarea.form-control {
    resize: vertical;
}